﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Staff_EditCourseData : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            Session.Clear();
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Label1.Text = '%' + TextBox2.Text + '%';
        Session["name"] = '%'+ TextBox2.Text +'%';
        GridView1.DataBind();
        
    }
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        DetailsView1.DataBind();
    }
}